package com.go123456789.yygh.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${cloopen.sms.accountSId}")
    private String accountSId;
    @Value("${cloopen.sms.accountToken}")
    private String accountToken;
    @Value("${cloopen.sms.appId}")
    private String appId;

    public static String ACCOUNT_SID;
    public static String ACCOUNT_TOKEN;
    public static String APP_ID;

/**
//    阿里短信
//    @Value("${aliyun.sms.regionId}")
//    private String regionId;
//
//    @Value("${aliyun.sms.accessKeyId}")
//    private String accessKeyId;
//
//    @Value("${aliyun.sms.secret}")
//    private String secret;
//
//    public static String REGION_Id;
//    public static String ACCESS_KEY_ID;
//    public static String SECRECT;
**/
    @Override
    public void afterPropertiesSet() throws Exception {

        //荣联短信
        ACCOUNT_SID = accountSId;
        ACCOUNT_TOKEN =accountToken;
        APP_ID = appId;


/**
//        阿里云短信
//        REGION_Id=regionId;
//        ACCESS_KEY_ID=accessKeyId;
//        SECRECT=secret;
 **/

    }
}

